package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.TableColumn;
import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.annotation.TableName;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author niliwei
 */
@Data
@NoArgsConstructor
@TableName("db_dept")
@ApiModel("部门表")
public class DbDept extends Entity {
    @TableId(type = IdType.GUID)
    private String id;

    @TableColumn(remarks = "父机构ID")
    private String parentId;

    @TableColumn(remarks = "部门名称")
    private String deptName;

    @TableColumn(remarks = "机构编码")
    private String orgCode;

    @TableColumn(remarks = "排序")
    private Integer orderNo;

    @TableColumn(remarks = "状态")
    private String status;
}
